package com.py.framework.entity;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * 工作流流转属性
 * @author Leegern
 * @date   2018年5月24日
 */
public class WorkFlowOutGoing {

	/**
	 * 下一节点名称
	 */
	private String activityName;
	
	/**
	 * 下一节点参与人（如果是多个用英文逗号分隔）
	 */
	private String candidateGroup;
	
	/**
	 * 下一流向名称（体现在按钮中）
	 */
	private String outGoing;
	
	/**
	 * 下一节点类型描述（END，TASK,ERROR）
	 */
	private String type;
	
	/**
	 * 节点表达式
	 */
	private OutGoingCondition condition;

	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

	/**
	 * @return the activityName
	 */
	public String getActivityName() {
		return activityName;
	}

	/**
	 * @param activityName the activityName to set
	 */
	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	/**
	 * @return the candidateGroup
	 */
	public String getCandidateGroup() {
		return candidateGroup;
	}

	/**
	 * @param candidateGroup the candidateGroup to set
	 */
	public void setCandidateGroup(String candidateGroup) {
		this.candidateGroup = candidateGroup;
	}

	/**
	 * @return the outGoing
	 */
	public String getOutGoing() {
		return outGoing;
	}

	/**
	 * @param outGoing the outGoing to set
	 */
	public void setOutGoing(String outGoing) {
		this.outGoing = outGoing;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the condition
	 */
	public OutGoingCondition getCondition() {
		return condition;
	}

	/**
	 * @param condition the condition to set
	 */
	public void setCondition(OutGoingCondition condition) {
		this.condition = condition;
	}
}